<div class="badge-sticky-sidedock-static">
<div class="badge-sticky-sidedock-sticky" style="top: 46px; position: fixed;"><!-- this is the actual sticky element -->
<?php if(!empty($viewmore)): ?>
<div class="post-control">
	<ul class="left">
		<?php if(!empty($viewmore[1])): ?>
		<li><a href="<?php echo permalink(array('text' => $viewmore[1]->post_title, 'id' => $viewmore[1]->id)) ?>" data-entry-key="" class="badge-fast-entry badge-prev-post-entry">« Trước</a></li>
		<?php endif; ?>
		<?php if(!empty($viewmore[0])): ?>
		<li><a href="<?php echo permalink(array('text' => $viewmore[0]->post_title, 'id' => $viewmore[0]->id)) ?>" data-entry-key="aOqrb5N" class="badge-fast-entry badge-next-post-entry blue">Sau »</a></li>
		<?php endif; ?>
	</ul>
</div>
<?php endif; ?>
<?php if(!empty($olderPost)): ?>
<div class="post-grid">
	<ul class="badge-post-grid">
	<?php foreach($olderPost as $post): ?>
		<li class="">
			<a href="<?php echo permalink(array('text' => $post->post_title, 'id' => $post->id)); ?>" data-entry-key="<?php echo $post->id; ?>" class="badge-fast-entry badge-post-grid-entry">
				<img alt="<?php echo strip_tags($post->post_title) ?>" class="lazy" data-original="<?php echo getThumbnail('192x', $post->post_image) ?>" src="<?php echo getThumbnail('192x', $post->post_image) ?>">
			</a>
		</li>
	<?php endforeach; ?>
	</ul>
</div>
<?php endif;//older post ?>
<div class="clearfix"></div>
<div class="badge-entry-info post-info"> <p> <?php echo facebookTime($detail->crawl_date) ?>·<!--  <a href="javascript: void(0);" class="badge-item-report">Report</a>  --></p> </div>

</div>
</div>